<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>访问程序初始化参数</title>
</head>
<body>

<%

String url=application.getInitParameter("url");

Enumeration<String> enums=application.getAttributeNames();
while(enums.hasMoreElements()){
	String name=(String)enums.nextElement();//当有元素时获取下一个枚举值
	String value=application.getInitParameter(name);
	System.out.println("name:"+name+"  value:"+value);
}

//String values=application.getAttributeNames();




%>

<%=url %>

</body>
</html>